package com.yra.mapper;

import com.yra.domain.IndexConfig;
import com.yra.util.PageQueryUtil;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @Author: yrq
 * @Date: Create in 13:42 2019/12/17
 */
public interface IndexConfigMapper {

    List<IndexConfig> getConfigPageList(PageQueryUtil pageQueryUtil);

    int getTotalConfig(PageQueryUtil pageQueryUtil);

    List<IndexConfig> queryConfigForIndex(int type, int limit);

    int[] queryProductIds(int type, int limit);

    int insertConfig(Map<String, Object> params);

    int updateConfig(Map<String, Object> params);

    int deleteConfigs(int[] ids);
}
